<?php
use think\facade\Route;

//Route::get('news/:id', 'api/news/read')->cache(10);
Route::get('news/:id','api/news/show')->pattern(['id'=>'\d+'])->cache(10);
Route::get('js/index','api/js/index')->cache(10);
Route::get('program/index','api/program/index')->cache(10);
Route::get('program/:id','api/program/show')->pattern(['id'=>'\d+'])->cache(10);
Route::get('program/:name','api/program/lists')->pattern(['name' => '\w+'])->cache(10);

